package cn.s02.ignore;

public class Person implements UserAware{
	private User user;
	private Admin admin;
	private Role role;

	public User getUser() {
		return user;
	}

	@Override
	public void setUser(User user) {
		this.user = user;
	}

	public Admin getAdmin() {
		return admin;
	}

	public void setAdmin(Admin admin) {
		this.admin = admin;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	@Override
	public String toString() {
		return "Person{" +
				"user=" + user +
				", admin=" + admin +
				", role=" + role +
				'}';
	}
}
